import request from '@/utils/request'

// 查询APP菜单管理列表
export function listAppMenu(query) {
  return request({
    url: '/business/appMenu/list',
    method: 'get',
    params: query
  })
}

// 查询APP菜单管理详细
export function getAppMenu(id) {
  return request({
    url: '/business/appMenu/' + id,
    method: 'get'
  })
}

// 新增APP菜单管理
export function addAppMenu(data) {
  return request({
    url: '/business/appMenu',
    method: 'post',
    data: data
  })
}

// 修改APP菜单管理
export function updateAppMenu(data) {
  return request({
    url: '/business/appMenu',
    method: 'put',
    data: data
  })
}

// 删除APP菜单管理
export function delAppMenu(id) {
  return request({
    url: '/business/appMenu/' + id,
    method: 'delete'
  })
}

// 导出APP菜单管理
export function exportAppMenu(query) {
  return request({
    url: '/business/appMenu/export',
    method: 'get',
    params: query
  })
}